package hos.load;

import java.util.EventObject;

/**
 * <p>Title: LoadStatusChangedEvent </p>
 * <p>Description:  </p>
 * <p>Company: www.mapuni.com </p>
 *
 * @author : 蔡俊峰
 * @version : 1.0
 * @date : 2024-09-04 13:21
 */
public class LoadStatusChangedEvent extends EventObject {
    private LoadStatus newLoadStatus = LoadStatus.LOADING;

    /**
     * Constructs a prototypical Event.
     *
     * @param source the object on which the Event initially occurred
     * @throws IllegalArgumentException if source is null
     */
    public LoadStatusChangedEvent(Object source, LoadStatus newLoadStatus) {
        super(source);
        this.newLoadStatus = newLoadStatus;
    }

    public LoadStatus getNewLoadStatus() {
        return newLoadStatus;
    }
}
